package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Category;
import com.itheima.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    boolean selectCountByCategoryId(Long id);

    void saveWithFlavor(DishDto dishDto);

    Page<DishDto> getAll(int page,int pageSize,String name);

    DishDto getDishDtoById(Long id);

    void updateByDishDto(DishDto dishDto);

    Boolean removeDishAndDishFlavorByIds(List<Long> ids);

    void updateStatus(int status, List<Long> ids);
}
